#include "Node.h"
#include <QLabel>
#include <QMouseEvent>
#include <QString>
void Node::mouseMoveEvent(QMouseEvent *event)
{
    this->setText(QString("<center><h1>Move:(%1,%2")</h1></center>").arg(QString::number(X),QString::number(Y)));
}

void Node::mousePressEvent(QMouseEvent *event)
{
    this->setText(QString("<center><h1>Move:(%1,%2")</h1></center>").arg(QString::number(X),QString::number(Y)));
}

void Node::mouseReleaseEvent(QMouseEvent *event)
{
    QString msg;
    msg.springf("<center><h1>Release:(%d,%d)</h1></center>",X,Y);
    this->setText(msg);
}

